package com.skd.ssm.service.impl;

import com.skd.ssm.dao.BaseDao;
import com.skd.ssm.dao.UserMapper;
import com.skd.ssm.domain.User;
import com.skd.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService{
    @Autowired
    public UserMapper userMapper;

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }


    @Override
    public BaseDao<User> getDao() {
        return userMapper;
    }
    public User selectByPrimaryKey(Integer id)
    {
        return  userMapper.selectByPrimaryKey(id);
    }
}
